<?php
if (defined(ABSPATH)) {
    require_once(ABSPATH . "modules/admin-head.inc.php");
} else {
    define("ABSPATH", $_SERVER['DOCUMENT_ROOT'] . "/");
    require_once(ABSPATH . "modules/admin-head.inc.php");
}
// Set action
$_SESSION['is_profile_page'] = isset($_SESSION['is_profile_page'])?$_SESSION['is_profile_page']:true;
if ($_SESSION['is_profile_page']) {
    $_GET['action'] = "edit_profile";
} else {
    $_GET['action'] = "edit_user";
}
// Ajax section
$xajax = new xajax();
$xajax->registerFunction("checkAll");
$xajax->registerFunction("checkAllRole");
$xajax->registerFunction("checkGeneralForm");
$xajax->registerFunction("jsSubmitForm");
// $xajax->debugOn();
$xajax->processRequests();
// Include the header file
require_once(ABSPATH . "includes/admin-header.html");
require_once(ABSPATH . "modules/admin-menu.inc.php");
require_once(ABSPATH . "modules/user.inc.php");
require_once(ABSPATH . "modules/edit_user.inc.php");
// Include thr footer to complete the template
require_once(ABSPATH . 'includes/footer.php');

?>